package com.jeeplus.test.jlnu.admissionInfo.service.impl;

import com.jeeplus.sys.domain.Office;
import com.jeeplus.sys.utils.UserUtils;
import com.jeeplus.test.jlnu.admissionInfo.mapper.AdmissionInfoApprovMapper;
import com.jeeplus.test.jlnu.admissionInfo.service.AdmissionApprovService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdmissionApprovServiceImpl implements AdmissionApprovService {
    @Resource
    private AdmissionInfoApprovMapper admissionInfoApprovMapper;
//    @Resource
//    private UserUtils userUtils;

    public void approveAdmissionInfo(String sign,String type,List<String> admissionInfo) {
//        String userFlag = userUtils.getCurrentUserDTO().getId();
//        List<Office> of=admissionInfoApprovMapper.getOfficeByUserId(userFlag);
        String tableName = "jlnu_admission_info";
        String state = type;

        admissionInfoApprovMapper.updateApproveStateByIds(tableName,type,admissionInfo);
    }
}
